﻿package game.events 
{
	import flash.events.Event;
	import flash.filters.GradientGlowFilter;
	/**
	 * ...
	 * @author Nguyen Thi Bich Phuong (Daisy)
	 */
	public class EventData extends Event {
		
		public static const CONNECT_GAME:String = "connect_game";
		public static const UPDATE_USERINFO:String = "update_userinfo";
		public static const UPDATE_TABLEINFO:String = "update_tableinfo";
		public static const UPDATE_LIVEBETPOOL_GAME:String = "update_livebetpool_game";
		public static const UPDATE_LIVEBETPOOL_USER_PUBLIC:String = "update_livebetpool_user_public";
		public static const UPDATE_LIVEBETPOOL_USER_PRIVATE:String = "update_livebetpool_user_private";
		public static const UPDATE_HISTORY:String = "update_history";
		public static const INIT_ASK_PLAYER_BANKER_TYPE_1:String = "INIT_ASK_PLAYER_BANKER_TYPE_1";
		public static const INIT_ASK_PLAYER_BANKER_TYPE_2:String = "INIT_ASK_PLAYER_BANKER_TYPE_2";
		public static const GET_ASK_PLAYER_BANKER_TYPE_1:String = "get_ask_player_banker_type_1";
		public static const GET_ASK_PLAYER_BANKER_TYPE_2:String = "get_ask_player_banker_type_2";
		public static const UPDATE_ASK_ROUTE_1:String = "update_ask_route_type_1";
		public static const UPDATE_ASK_ROUTE_2:String = "update_ask_route_type_2";
		public static const CLICK_CLOSE_GAMERULE:String = "click_close_gamerule";
		public static const CLICK_CLOSE_GAMEREPORT:String = "click_close_gamehistory";
		public static const SELECTION_CHANGED:String = "selectionChanged"; // No edit
		
		public static const SHOW_ERR_DATE_NULL:String = "show_err_date_null";
		public static const GET_REPORT:String = "get_report";
		public static const SHOW_ERR_CHOOSE_DATE:String = "show_err_choose_date";
		
		public static const LOAD_FILE_TXT:String = "load_file_txt";
		public static const LOAD_FILE_SWF:String = "load_file_swf";

		public static const BET_CHANGE:String = "bet_change";
		public static const COUNTDOWN_COMPLETE:String = "countdown_complete";
		public static const UPDATE_DATE_REPORT:String = "update_date_report";
		public static const UPDATE_DATE_FROM:String = "update_date_from";
		public static const UPDATE_DATE_TO:String = "update_date_to";
		public static const UPDATE_VALUE_REPORT:String = "update_value_report";
		public static const UPDATE_BET_STATUS:String = "update_bet_status";
		public static const UPDATE_GAMESET_GAMENO:String = "update_gameset_gameno";
		
		public static const CONFIRM_BETTING:String = "confirm_betting";
		public static const CLEAR_BETTING:String = "clear_betting";
		public static const REBET_BETTING:String = "rebet_betting";
        public static const UPDATE_WELCOME_MESSAGE:String = "update_welcome_message";
		public static const GET_HISTORY:String = "get_history";
		public static const CHANGE_ROOM:String = "change_room";
		public static const LOAD_XML_COMPLETE:String = "load_xml_complete";
		public static const	HASHTABLE_COMPLETE:String = "hashtable_complete";
		public static const	CALL_LOGIN:String = "call_login";
		public static const CHANGE_LANG_LOGIN:String = "change_lang_login";
		public static const ACCEPT_AGRE:String = "accept_agre";
		public static const NOT_ACCEPT_AGRE:String = "not_accept_agre";
		public static const LOAD_GAME:String = "load_game";
		public static const UPDATE_STATUS_ROOM_OPENED:String = "update_status_room_opened";
		public static const UPDATE_STATUS_ROOM_FREE:String = "update_status_room_free";
		public static const UPDATE_STATUS_GAME:String = "update_status_game";
		public static const SEND_BALANCE_TO_MAIN:String = "send_balance_to_main";
		public static const SHOW_MS:String = "show_ms";
		public static const UPDATE_BALANCE:String = "update_balance";
		public static const LOAD_MOVIE:String = "load_movie";
		
		public static const UPDATE_CURRENCY = "update_currency";
		public var newBalance:Number;
		public var activeRoomBac:String;
		public var ms:String;
		
		public static const BETPLACE_MOUSEOVER:String = "betplace_mouseover"; 
		public static const BETPLACE_MOUSEOVER_SEND:String = "betplace_mouseover_send";
		public static const BETPLACE_MOUSEOUT:String = "betplace_mouseout";
		public var chooseRoomBac:String;
		
		public static const CHIP_ACTIVE:String = "chip_active";
		public static const CLOSE_GAME:String = "close_game";
		public static const PLAY_VOD:String = "play_vod";
		public static const UPDATE_VIDEO:String = "update_video";
		public static const UPDATE_SOUNDBACKGROUND:String = "update_sound_background";
		public static const STOP_LIST_SOUND:String = "stop_list_sound";
		
		public static const UPDATE_SOUNDVOLUMEBACKGROUND:String = "update_soundvolume_background";
		public static const UPDATE_VOLUMEBACKGROUND:String = "update_volumebackground";
		public static const GET_SOUND_COUNT_DOWN:String = "get_sound_count_down";
		public static const PLAY_VIDEO:String = "play_video";
		public static const UPDATE_DATECLOCK:String = "update_dateclock";
		public static const SET_FMS_CHANNEL:String = "set_fms_channel";
		
		public static const SET_MENU_GAME:String = "set_menu_game";
		public static const LOCK_VOLUME_GAME:String = "lock_volume_game";
		public static const UN_LOCK_VOLUME_GAME:String = "un_lock_volume_game";
		public static const GET_RECENT_BET:String = "get_recent_bet";
		public static const CHANGE_PASS:String = "change_pass";
		
		public static const CHANGE_LOAD_GAME:String = "change_load_game";
		
		public static const INVALID_TOKEN:String = "invalid_token";
		
		public static const CHIP_NAVIGATION:String = "chip_navigation";
		
		public var chipActive:String;
		public var chipPos:int;
		public var name:String;
		
		public function EventData(type:String, bubbles:Boolean=false, cancelable:Boolean=false) {
			super(type, bubbles, cancelable);			
		} 
		
		public override function clone():Event { 
			return new EventData(type, bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("BetEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		
		
	}

}